WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
covariance.h File Reference
#include <Eigen/Dense>

Go to the source code of this file.

Namespaces

namespace  wolf
 

Macros

#define WOLF_ASSERT_COVARIANCE_MATRIX(x)   assert(isCovariance(x, Constants::EPS_SMALL) && "Not a covariance");
 
#define WOLF_ASSERT_INFORMATION_MATRIX(x)   assert(isCovariance(x, double(0.0)) && "Not an information matrix");
 

Functions

template<typename T , int N, int RC>
bool wolf::isSymmetric (const Eigen::Matrix< T, N, N, RC > &M, const T eps=wolf::Constants::EPS)
 Returns whether a matrix is square and symmetric (up to eps) More...
 
template<typename T , int N, int RC>
bool wolf::isPositiveSemiDefinite (const Eigen::Matrix< T, N, N, RC > &M, const T &eps=Constants::EPS)
 Returns whether all the eigenvalues of a symmetric matrix are greater or equal than eps. More...
 
template<typename T , int N, int RC>
bool wolf::isCovariance (const Eigen::Matrix< T, N, N, RC > &M, const T &eps=Constants::EPS)
 Returns whether a matrix is a covariance: symmetric and positive semi-definite. More...
 
template<typename T , int N, int RC>
bool wolf::makePosDef (Eigen::Matrix< T, N, N, RC > &M, const T &eps=Constants::EPS)
 Makes a symmetric matrix positive definite, raising its eigenvalues below eps. Returns whether it was modified. More...
 
Eigen::MatrixXd wolf::computeSqrtUpper (const Eigen::MatrixXd &_info)
 Computes the upper triangular square root R of an information matrix (RᵀR = info), with an eigen decomposition (not triangular) if the Cholesky factorization fails. More...
 

Macro Definition Documentation

◆ WOLF_ASSERT_COVARIANCE_MATRIX

#define WOLF_ASSERT_COVARIANCE_MATRIX (   x)    assert(isCovariance(x, Constants::EPS_SMALL) && "Not a covariance");

◆ WOLF_ASSERT_INFORMATION_MATRIX

#define WOLF_ASSERT_INFORMATION_MATRIX (   x)    assert(isCovariance(x, double(0.0)) && "Not an information matrix");